package cn.huanba.controller;

import cn.huanba.client.DictService;
import cn.huanba.dto.Result;
import cn.huanba.utils.ResultUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (Dict)表控制层
 *
 * @author makejava
 * @since 2021-01-07 17:23:30
 */
@RestController
@RequestMapping("dict")
@Api(value = "字典接口", tags = "字典接口", description = "字典模块控制类")

public class DictController {
    /**
     * 服务对象
     */
    @Resource
    private DictService dictService;


    /**
     * 查询类别集合
     *
     * @param
     * @return 集合
     */
    @GetMapping("typeList")
    @ApiOperation(value = "获取类别列表", notes = "获取类别列表")
    public Result typeList() {
        return ResultUtils.returnDataSuccess(this.dictService.queryTypeAll()) ;
    }



}